//
//  NAError.h
//  NewApp
//
//  Created by 健 吕 on 12-6-9.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    NAError_PARSE_FAIL,
    NAError_CONNECTION_FAIL,
    NAError_UNEXPECTED_DATA,
    NAError_REG_FAIL,
    NAError_REQ_FAIL
} NAErrorCode;

@interface NAError : NSObject  {
    NAErrorCode   code;
}

@property (nonatomic, assign) NAErrorCode code;

/**
 *  Error description
 */
- (NSString *) errorDescprtion;

/**
 *  Returns NAError instance
 */
+ (NAError *) errorWithCode:(NAErrorCode) code;

/**
 *  Shows error message
 */
- (void) showErrorMessage:(NSString *) title;

/**
*   Shows Alert
*/
+ (void) showAlertMessageWithTitle:(NSString *) title message:(NSString *) message;


@end
